﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;
using System.IO;


namespace FodeeAdmin.SystemSettings
{
    public partial class InForm : Form
    {
        public InForm()
        {
            InitializeComponent();
        }

        private void btnDepartment_Click(object sender, EventArgs e)
        {
            DepartmentForm departmentForm = new DepartmentForm();
            departmentForm.Show();
            //this.Hide();
        }

        private void btnRoles_Click(object sender, EventArgs e)
        {
            RolesForm rolesForm = new RolesForm();
            rolesForm.Show();
            //this.Hide();
        }

        private void btnStaff_Click(object sender, EventArgs e)
        {
            StaffForm staffForm = new StaffForm();
            staffForm.Show();
            //this.Hide();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            UserGroupForm userGroupForm = new UserGroupForm();
            userGroupForm.Show();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            RoleCategoryForm roleCategoryForm = new RoleCategoryForm();
            roleCategoryForm.Show();
        }

        private void btnOperate_Click(object sender, EventArgs e)
        {
            UserForm userform = new UserForm();
            userform.Show();
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            tbxTableCategoryForm tableCategoryForm = new tbxTableCategoryForm();
            tableCategoryForm.Show();
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            TableForm tableForm = new TableForm();
            tableForm.Show();
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
            PaymentTypeForm paymentTypeForm = new PaymentTypeForm();
            paymentTypeForm.Show();
        }

        private void pictureBox6_Click(object sender, EventArgs e)
        {
            PaymentForm paymentForm = new PaymentForm();
            paymentForm.Show();
        }

        private void pictureBox7_Click(object sender, EventArgs e)
        {
            BillForm billForm = new BillForm();
            billForm.Show();
        }

        private void pictureBox8_Click(object sender, EventArgs e)
        {
            MemberForm memberForm = new MemberForm();
            memberForm.Show();
        }

        private void pictureBox9_Click(object sender, EventArgs e)
        {
            FoodCategoryForm form = new FoodCategoryForm();
            form.Show();
        }

        private void pictureBox10_Click(object sender, EventArgs e)
        {
            FoodUnitForm form = new FoodUnitForm();
            form.Show();
        }

        private void pictureBox11_Click(object sender, EventArgs e)
        {
            FoodForm form = new FoodForm();
            form.Show();
        }

        private void pictureBox13_Click(object sender, EventArgs e)
        {
            SystemSettingsForm form = new SystemSettingsForm();
            form.Show();
        }

        private void InForm_Load(object sender, EventArgs e)
        {
            //this.skinEngine1.SkinFile = Application.StartupPath + @"\Skins\EmeraldColor1.ssk";
            

            //string path= Application.StartupPath+@"\Skins";
            //if (!Directory.Exists(path))
            //{
            //    return;
            //}

            //List<ListItem> li = new List<ListItem>();

            //DirectoryInfo mydir = new DirectoryInfo(path);
            //foreach (FileInfo file in mydir.GetFiles())
            //{
            //    li.Add(new ListItem(file.Name, file.Name));
            //}

            //this.comboBox1.DataSource = li;
            //this.comboBox1.DisplayMember = "Text";
            //this.comboBox1.ValueMember = "Value";
        }

        private void pictureBox12_Click(object sender, EventArgs e)
        {
            CodeCategoryForm form = new CodeCategoryForm();
            form.Show();
        }

        private void pictureBox14_Click(object sender, EventArgs e)
        {
            CodeForm form = new CodeForm();
            form.Show();
        }

        

        //private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    this.skinEngine1.SkinFile = Application.StartupPath + @"\Skins\"+this.comboBox1.SelectedValue.ToString();
        //}

        
    }
}
